package com.link.base.base.mvg.dao.mybatis.product.mapper;

import com.link.base.base.mvg.dao.mybatis.basic.mapper.MvgMapper;
import com.link.base.base.mvg.model.Mvg;
import com.link.base.base.product.model.Tag;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 产品标签mvg
 */
public interface ProductTagMvgMapper extends MvgMapper {

    /***
     * 查询产品和标签关联列表
     * @param mvg
     * @return
     * @throws Exception
     */
    public List<Tag> queryTagAndProdPage(Mvg mvg) throws Exception;

    /**
     * corpid
     * tagId
     * prodId
     * 删除指定条件中间表
     * 三种条件任意组合删除
     *
     * @param mvg
     * @throws Exception
     */
    public void deleteInterByTagOrProdId(Mvg mvg) throws Exception;

}
